#! /usr/bin/env python
# -*- python -*-

import os

INPUT_NAME = 'INPUT'   
print "Enter name of the Free-Formated input file [.ASC]: "  

INPUT_NAME = raw_input("Enter name:")

print "you entered: " + INPUT_NAME

INPUT_NAME_PATH = './' + str(INPUT_NAME) + '.TMP'

if os.path.isfile( INPUT_NAME_PATH ):
  try:
    f = open(INPUT_NAME_PATH,"r")

    print f.readline()

  except:
    print "Oh dear it failed"

print "Done"

DIRPATH = os.getcwd()

print DIRPATH + '\CADIN.ASC'